﻿using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;
using YJTTool.CustomerInfo.Views;

namespace YJTTool.CustomerInfo
{
    public class CustomerInfoModule : IModule
    {
        private readonly IRegionManager _regionManager;

        public CustomerInfoModule(IRegionManager regionManager)
        {
            _regionManager = regionManager;
        }
        public void OnInitialized(IContainerProvider containerProvider)
        {
            
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            _regionManager.RegisterViewWithRegion("ContentRegion", typeof(CustomerInfoView));
            containerRegistry.RegisterForNavigation<CustomerInfoView>(typeof(CustomerInfoView).FullName);
        }
    }
}